home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 5274 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.2 KB  |  46 lines

  1. Newsgroups: comp.lang.c++
  2. Path: cs.vu.nl!jalten
  3. From: jalten@cs.vu.nl (Alten JP)
  4. Subject: Re: C++ 4.5 CanClose
  5. Nntp-Posting-Host: kits.cs.vu.nl
  6. References: <00001a81+000098f8@msn.com>
  7. Sender: news@cs.vu.nl
  8. Organization: Fac. Wiskunde & Informatica, VU, Amsterdam
  9. Date: Sat, 3 Feb 1996 11:18:04 GMT
  10. X-Newsreader: TIN [version 1.2 PL2]
  11. Message-ID: <DM7624.771.0.-s@cs.vu.nl>
  12.  
  13.  
  14. Carl  S. Moore (cmoore@msn.com) wrote:
  15. [sshhhh]
  16. : I have the following, where a menu item calls Exitgame, and then it 
  17. : brings up the CanClose box.  It doesn't seem to respond to the 
  18. : CanClose through this menu exit, but the CanClose does work when I 
  19. : terminate the window by clicking on the upper left corner etc. (ie, 
  20. : doesn't route through Exitgame).
  21.  
  22. : void TMyWindow::Exitgame()
  23. : {
  24. :   TMyWindow::CanClose();
  25. : }
  26.  
  27.  
  28. How about calling CloseWindow(), which will call CanClose automatically?
  29.  
  30. void TMyWindow::Exitgame()
  31. {
  32.   CloseWindow();
  33. }
  34.  
  35. OWL questions are more fruitfull in comp.os.ms-windows.programmer.misc
  36. though.
  37.  
  38. Good luck
  39.  
  40. Jelle
  41.  
  42. +-------------------------------------------------------+
  43. | Jelle Paul Alten                |   jalten@cs.vu.nl   |
  44. | Vrije Universiteit Amsterdam    |                     |
  45. +-------------------------------------------------------+
  46.